package com.xy.blog.article.domain.dao;


import com.xy.blog.article.domain.dao.model.ArticleLikeDO;
import com.xy.blog.article.domain.dao.model.ArticleViewDO;

import java.util.List;
import java.util.Map;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description:
 * @date 2020/5/23
 */
public interface IArticleLikeViewDao {


    void addLikeCount(ArticleLikeDO item);

    void addViewCount(ArticleViewDO item);

    Map<Long, Long> getLikeCountByArticleId(List<Long> ids);

    Map<Long, Long> getViewCountByArticleId(List<Long> ids);


    void deleteLikeByArticleId(Long id);

    void deleteViewByArticleId(Long id);


}
